From: Keir Fraser Date: Mon, 17 Nov 2008 15:55:56 +0000 (+0000) Subject: hvm: Fix hvm_vcpu_reset_state() to act on specified domain, rather X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14043^2~26 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=a4c8fdfc7cb465c50f69b714bd6f789de17d0f88;p=xen.git hvm: Fix hvm_vcpu_reset_state() to act on specified domain, rather than current. Signed-off-by: Liping Ke --- diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 261fc7e4d3..9bda106ec2 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -2122,7 +2122,7 @@ static int hvmop_set_pci_intx_level( void hvm_vcpu_reset_state(struct vcpu *v, uint16_t cs, uint16_t ip) { - struct domain *d = current->domain; + struct domain *d = v->domain; struct vcpu_guest_context *ctxt; struct segment_register reg;